﻿<basics:ChildWindow
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
	x:Class="TheGameClient.DlgSaveConnection"
	Title="Save connection..." Background="{StaticResource DefaultWindowColor}" Style="{StaticResource DefaultDialogStyle}">
	<Grid x:Name="LayoutRoot">
		<StackPanel VerticalAlignment="Top">
			<StackPanel Orientation="Horizontal" Margin="0,0,0,5">
				<TextBlock Text="Connection name:" TextWrapping="Wrap" Width="110" VerticalAlignment="Center" Margin="0,0,5,0"/>
				<TextBox x:Name="txtConnectionName" TextWrapping="Wrap" Width="200" VerticalAlignment="Center" TabIndex="0" TextChanged="TxtConnectionNameTextChanged"/>
			</StackPanel>
			<StackPanel Margin="0,0,0,5" Orientation="Horizontal">
				<TextBlock Margin="0,0,5,0" VerticalAlignment="Center" Width="110" Text="Connection name:" TextWrapping="Wrap"/>
				<ComboBox x:Name="cmbExistingConnections" Width="200" SelectionChanged="CmbExistingConnectionsSelectionChanged" Height="20" DisplayMemberPath="Name"/>
			</StackPanel>
			<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
				<Button x:Name="OKButton" Content="OK" Click="OkButtonClick" Height="23" d:LayoutOverrides="Height" Width="75" Margin="0,0,5,0" />
				<Button x:Name="CancelButton" Content="Cancel" Click="CancelButtonClick" Height="23" d:LayoutOverrides="Height" Width="75" />
			</StackPanel>
		</StackPanel>
	</Grid>
</basics:ChildWindow>